OUTPUT = out-test

HEADERS = $(ls *.h*)
OBJECTS = $(ls *.cpp | sed -e 's/.cpp/.o/g')
$(OUTPUT): main.o common.o
	g++ -lGL -lglut -lGLEW -lGLU -lm *.o -o $(OUTPUT)

%.o : %.cpp %.h $(HEADERS)
	g++ -c -fpermissive $<

clean:
	rm -f $(OUTPUT) *~ *.o
